home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_hint.cog < prev    next >
Text File  |  1999-11-15  |  8KB  |  440 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PYR_Hint.cog
  4. #
  5. # Solves hints
  6. #
  7. # [SXC] + [RKD]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13. message    activated
  14. message    arrived
  15. message    entered
  16. message    taken
  17.  
  18. thing    player    local
  19.  
  20. #thing    hint1
  21.  
  22. #thing    hint2
  23.  
  24. thing    hint3
  25. surface    hint3face
  26.  
  27. thing    hint4
  28. sector    hint4sector
  29.  
  30. #thing    hint5    <--->  handled by pyr_pyr1smashout.cog
  31.  
  32. thing    hint6
  33. surface    hint6face
  34.  
  35. thing    hint7
  36. thing    hint7button
  37.  
  38. thing    hint8
  39. sector    hint8sector
  40.  
  41. thing    hint9
  42. sector    hint9sector
  43.  
  44. thing    hint10
  45. sector    hint10sector
  46.  
  47. thing    hint11
  48. thing    hint11box
  49.  
  50. #thing    hint12
  51.  
  52. thing    hint13
  53. surface    hint13face
  54.  
  55. thing    hint14
  56. thing    hint14chain
  57.  
  58. thing    hint15
  59. thing    hint15lever
  60. thing    hint15chain
  61.  
  62. thing    hint16
  63. thing    hint16watch
  64.  
  65. thing    hint17
  66. surface    hint17face
  67.  
  68. #thing    hint18    <--->  handled by hyenakill cog
  69.  
  70. thing    hint19
  71. thing    hint19gem
  72.  
  73. #thing    hint20
  74.  
  75. thing    hint21
  76. sector    hint21sector
  77.  
  78. thing    hint22
  79. sector    hint22sector
  80.  
  81. #thing    hint23
  82.  
  83. #thing    hint24    <--->    handled by blockrise.cog
  84.  
  85. #thing    hint25    <--->    handled by blockrise.cog
  86.  
  87. thing    hint26
  88. surface    hint26face
  89.  
  90. thing    hint27
  91. sector    hint27sector
  92.  
  93. #thing    hint28
  94.  
  95. thing    hint29
  96. sector    hint29sector
  97.  
  98. #thing    hint30
  99.  
  100. thing    hint31
  101. thing    hint31box
  102.  
  103. thing    hint32
  104. thing    hint32gem
  105.  
  106. #thing    hint33
  107.  
  108. thing    hint34
  109. sector    hint34sector
  110.  
  111. #thing    hint35
  112.  
  113. thing    hint36
  114. sector    hint36sector
  115.  
  116. #thing    hint37
  117.  
  118. thing    hint38
  119. thing    hint38kindling
  120.  
  121. thing    hint39
  122. sector    hint39sector
  123.  
  124. thing    hint40
  125. thing    hint40box
  126.  
  127. #thing    hint41
  128.  
  129. thing    hint42
  130. thing    hint42bucket
  131.  
  132. thing    hint43
  133. thing    hint43bucket
  134.  
  135. thing    hint44
  136. thing    hint44gem
  137.  
  138. #thing    hint45
  139.  
  140. thing    hint46
  141. sector    hint46sector
  142.  
  143. #thing    hint47
  144.  
  145. thing    hint48
  146. sector    hint48sector
  147.  
  148. thing    hint49
  149. sector    hint49sector
  150.  
  151. #thing    hint50
  152.  
  153. #thing    hint51 <---->  handled by johplatform cog
  154.  
  155. #thing    hint52
  156.  
  157. thing    hint53
  158. sector    hint53sector
  159.  
  160. thing    hint54
  161. thing    hint54box
  162.  
  163. thing    hint55
  164. thing    hint55gem
  165.  
  166. thing    hint56
  167. thing    hint56car
  168.  
  169. #thing    hint57 <----> handled by gashint.cog
  170.  
  171. thing    hint58
  172. thing    hint58wheel
  173.  
  174. #thing    hint59 <----> handled by minecar fixing cog
  175.  
  176. thing    hint60
  177. sector    hint60sector
  178.  
  179. end
  180.  
  181.  
  182. # ========================================================================================
  183. code
  184. activated:
  185.     player = GetLocalPlayerThing();
  186.  
  187.     # player pushes button to get into pyramid 1 door
  188.     if (GetSenderRef() == hint7button)
  189.     {
  190.         SetHintSolved(hint7);
  191.     }
  192.  
  193.     # player activates chain in shack
  194.     if (GetSenderRef() == hint14chain)
  195.     {
  196.         SetHintSolved(hint14);
  197.     }
  198.  
  199.     # player activates lever on dirtmover while drive chain is visible
  200.     if ((GetSenderRef() == hint15lever) && (!BitTest(GetThingFlags(hint15chain), 0x10)))
  201.     {
  202.         SetHintSolved(hint15);
  203.     }
  204.  
  205.     # watch taken (activated)
  206.     if (GetSenderRef() == hint16watch)
  207.     {
  208.         SetHintSolved(hint16);
  209.     }
  210.  
  211.     # player activates gemeye on monojackal 1 with gemeye as current item
  212.     if ((GetSenderRef() == hint19gem) && (GetCurItem(player) == 65))
  213.     {
  214.         SetHintSolved(hint19);
  215.     }
  216.  
  217.     # player activates gemeye on monojackal 1 with gemeye as current item
  218.     if ((GetSenderRef() == hint32gem) && (GetCurItem(player) == 65))
  219.     {
  220.         SetHintSolved(hint32);
  221.     }
  222.  
  223.     # kindling activated/taken
  224.     if (GetSenderRef() == hint38kindling)
  225.     {
  226.         SetHintSolved(hint38);
  227.     }
  228.  
  229.     # player activates bucket on bucket machine with bucket as current item
  230.     if ((GetSenderRef() == hint43bucket) && (GetCurItem(player) == 117))
  231.     {
  232.         SetHintSolved(hint43);
  233.     }
  234.  
  235.     # player activates gemeye on monojackal 1 with gemeye as current item
  236.     if ((GetSenderRef() == hint44gem) && (GetCurItem(player) == 65))
  237.     {
  238.         SetHintSolved(hint44);
  239.     }
  240.  
  241.     # player activates gemeye on monojackal 1 with gemeye as current item
  242.     if ((GetSenderRef() == hint55gem) && (GetCurItem(player) == 65))
  243.     {
  244.         SetHintSolved(hint55);
  245.     }
  246.  
  247.     # player activates minecar with nothing as current item
  248.     if ((GetSenderRef() == hint56car) && (GetCurItem(player) == 0))
  249.     {
  250.         SetHintSolved(hint56);
  251.     }
  252.  
  253.     # player activates wheel on old minecar in pit
  254.     if (GetSenderRef() == hint58wheel)
  255.     {
  256.         SetHintSolved(hint58);
  257.     }
  258.  
  259.     return;
  260.  
  261. # ========================================================================================
  262. entered:
  263.     if (global2 == 1)
  264.     {
  265.         return;
  266.     }
  267.  
  268.     player = GetLocalPlayerThing();
  269.  
  270.     # face at bottom of first climb
  271.     if (GetSenderRef() == hint3face)
  272.     {
  273.         SetHintSolved(hint3);
  274.     }
  275.  
  276.     # sector at top of climb
  277.     if (GetSenderRef() == hint4sector)
  278.     {
  279.         SetHintSolved(hint4);
  280.     }
  281.  
  282.     # climbable face over block
  283.     if (GetSenderRef() == hint6face)
  284.     {
  285.         SetHintSolved(hint6);
  286.     }
  287.  
  288.     # upper hallway above entry hall 1
  289.     if (GetSenderRef() == hint8sector)
  290.     {
  291.         SetHintSolved(hint8);
  292.     }
  293.  
  294.     # room with stomper buttons
  295.     if (GetSenderRef() == hint9sector)
  296.     {
  297.         SetHintSolved(hint9);
  298.     }
  299.  
  300.        # sector on other side of stomper puzzle
  301.     if (GetSenderRef() == hint10sector)
  302.     {
  303.         SetHintSolved(hint10);
  304.     }
  305.  
  306.     # if player enters kid-trigger face and hyenas are all dead
  307.     if ((GetSenderRef() == hint13face) && (global8 == 11))
  308.     {
  309.         SetHintSolved(hint13);
  310.     }
  311.  
  312.     # if player enters kid-trigger face with watch in hand and all hyenas are dead
  313.     if ((GetSenderRef() == hint17face) && (GetInv(player, 100) == 1) && (global8 == 11))
  314.     {
  315.         SetHintSolved(hint17);
  316.     }
  317.  
  318.     # entrance to undertunnel in pyramid 1
  319.     if (GetSenderRef() == hint21sector)
  320.     {
  321.         SetHintSolved(hint21);
  322.     }
  323.  
  324.     # hole behind snake sarcophagus
  325.     if (GetSenderRef() == hint22sector)
  326.     {
  327.         SetHintSolved(hint22);
  328.     }
  329.  
  330.     # face on far end of shimmy puzzle
  331.     if (GetSenderRef() == hint26face)
  332.     {
  333.         SetHintSolved(hint26);
  334.     }
  335.  
  336.     # sector above closeable coffin in 2
  337.     if (GetSenderRef() == hint27sector)
  338.     {
  339.         SetHintSolved(hint27);
  340.     }
  341.  
  342.     # sectorabove pyramid 2 entrance
  343.     if (GetSenderRef() == hint29sector)
  344.     {
  345.         SetHintSolved(hint29);
  346.     }
  347.  
  348.     # sector on other side of both smashable walls in coffin room
  349.     if (GetSenderRef() == hint34sector)
  350.     {
  351.         SetHintSolved(hint34);
  352.     }
  353.  
  354.     # sector opposite start of shimmy maze
  355.     if (GetSenderRef() == hint36sector)
  356.     {
  357.         SetHintSolved(hint36);
  358.     }
  359.  
  360.     # sector over whip climb
  361.     if (GetSenderRef() == hint39sector)
  362.     {
  363.         SetHintSolved(hint39);
  364.     }
  365.  
  366.     # sector on other side of eyeblock puzzle
  367.     if (GetSenderRef() == hint46sector)
  368.     {
  369.         SetHintSolved(hint46);
  370.     }
  371.  
  372.     # crypt center
  373.     if (GetSenderRef() == hint48sector)
  374.     {
  375.         SetHintSolved(hint48);
  376.     }
  377.  
  378.     # top of climbable crypt
  379.     if (GetSenderRef() == hint49sector)
  380.     {
  381.         SetHintSolved(hint49);
  382.     }
  383.  
  384.     # topmost sector of IMP3 column
  385.     if (GetSenderRef() == hint53sector)
  386.     {
  387.         SetHintSolved(hint53);
  388.     }
  389.  
  390.     # level end
  391.     if (GetSenderRef() == hint60sector)
  392.     {
  393.         SetHintSolved(hint60);
  394.     }
  395.  
  396.     return;
  397.  
  398. # ========================================================================================
  399. arrived:
  400.     # pyr 1 lightbox arrives
  401.     if (GetSenderRef() == hint11box)
  402.     {
  403.         SetHintSolved(hint11);
  404.     }
  405.  
  406.     # pyr 2 lightbox arrives
  407.     if (GetSenderRef() == hint31box)
  408.     {
  409.         SetHintSolved(hint31);
  410.     }
  411.  
  412.     # pyr 3 lightbox arrives
  413.     if (GetSenderRef() == hint40box)
  414.     {
  415.         SetHintSolved(hint40);
  416.     }
  417.  
  418.     # pyr 4 lightbox arrives
  419.     if (GetSenderRef() == hint54box)
  420.     {
  421.         SetHintSolved(hint54);
  422.     }
  423.  
  424.     return;
  425.  
  426. # ========================================================================================
  427. taken:
  428.     # bucket taken
  429.     if (GetSenderRef() == hint42bucket)
  430.     {
  431.         SetHintSolved(hint42);
  432.     }
  433.  
  434.     return;
  435.  
  436. # ========================================================================================
  437.  
  438. end
  439.  
  440.